<?php


namespace api\home\model;


use think\Model;

class NavModel extends Model
{
    protected $name = 'navig';

    public function child()
    {
       return $this->hasMany(NavModel::class,'parent_id','id');
    }
}